package com.hymjweb.demo.hymj.customer_manage.freight_agreement.air.bean;

import com.hymjweb.demo.framework.util.pojoContrast.FieldMeta;
import com.hymjweb.demo.hymj.customer_manage.freight_agreement.detail.bean.BCustomerFeightAgreementDetailPojo;
import com.hymjweb.demo.hymj.customer_manage.freight_agreement.ticket_price.bean.BCustomerFreightTicketPricePojo;
import lombok.Data;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Table(name = "b_customer_air_freight_agreement")
@Data
public class BCustomerAirFreightAgreementPojo implements Serializable {

    @FieldMeta(columnname = "id", name = "客户协议运价ID", comment = "客户协议运价ID")
    private String id;

    @FieldMeta(columnname = "customer_id", name = "客户ID", comment = "客户ID,关联xt_customer.id")
    private String customerId;

    @FieldMeta(columnname = "airport_id", name = "始发机场ID", comment = "始发机场ID,关联xt_airport.id")
    private String airportId;


    @FieldMeta(columnname = "city_id", name = "目的城市ID", comment = "目的城市ID,关联xt_city.id")
    private String cityId;

    @FieldMeta(columnname = "airlines_id", name = "航空公司ID", comment = "航空公司ID,关联xt_airlines.id")
    private String airlinesId;

    @FieldMeta(columnname = "flight_no", name = "班次号", comment = "班次号,来源于b_flight")
    private String flightNo;

    @FieldMeta(columnname = "file_id", name = "协议运价文件ID", comment = "协议运价文件ID,关联xt_upload_file.id")
    private String fileId;

    @FieldMeta(columnname = "comment", name = "备注", comment = "备注")
    private String comment;

    @FieldMeta(columnname = "create_time", name = "创建时间")
    private Date createTime;

    @FieldMeta(columnname = "create_user_id", name = "记录添加人ID", comment = "关联XT_USER.ID")
    private String createUserId;

    @FieldMeta(columnname = "update_time", name = "更新时间")
    private Date updateTime;

    @FieldMeta(columnname = "update_user_id", name = "更新用户ID", comment = "关联XT_USER.ID")
    private String updateUserId;


    // 协议明细对象
    private List<BCustomerFeightAgreementDetailPojo> detailPojos;

    // 协议起票对象
    private List<BCustomerFreightTicketPricePojo> ticketPricePojos;


}
